#!/usr/bin/env python
	
class inputlist(object):
	
	def __init__(self, url):
		import feedparser
		self.url = url
		self.songlist = []
		feed = feedparser.parse(url)
		for song in feed['items']:
			self.songlist.append(song['title'].replace('.', '').encode('ascii', 'replace'))
		
	def empty(self):
		if len(self.songlist) <= 0:
			return True
		else:
			return False
	
	def nextitem(self):
		return self.songlist.pop()
